package com.huanmeiqi.demo.persistence.address;

/**
 * @author cq.Wang
 * @date 2018/6/15 17:26
 * @description 并发接口的测试
 */
public class ConcurrentTestInterface {

    public static void main(String[] args) {
        for (int i = 0; i < 1000; i++) {
            new Thread(new Runnable() {
                @Override
                public void run() {
                    HttpClientUtils.httpPost("http://localhost:8080/orders/10086", "");
                    HttpClientUtils.httpGet("http://localhost:8080/orders/10086");
                }
            }).start();
        }
    }
}
